package it.eng.ws.test.configuration;

import it.eng.ws.test.logging.LoggingSample;

import org.apache.log4j.Logger;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;

public class SimpleErrorHandler implements ErrorHandler {
	private static Logger l = LoggingSample.getLogger(it.eng.ws.test.configuration.SimpleErrorHandler.class);;

	@Override
	public void error(SAXParseException exception) throws SAXException {
		l.error(exception);
	}

	@Override
	public void fatalError(SAXParseException exception) throws SAXException {
		l.error(exception);
	}

	@Override
	public void warning(SAXParseException exception) throws SAXException {
		l.error(exception);
	}

}
